home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / ddj0897.zip / DYN401.ZIP / kernel / method.c < prev    next >
C/C++ Source or Header  |  1997-04-16  |  2KB  |  88 lines

  1.  
  2.  
  3. /*  Copyright (c) 1993-1996 Algorithms Corporation  */
  4. /*  All rights reserved.  */
  5.  
  6.  
  7.  
  8.  
  9. /*  This file automatically generated by dpp - do not edit  */
  10.  
  11. #define    DPP_STRATEGY    2
  12. #define    DPP_FASTWIDE    0
  13.  
  14.  
  15.  
  16.  
  17. #define    CLASS    Method_c
  18. #define    ivType    Method_iv_t
  19.  
  20. #include "generics.h"
  21.  
  22. object    Method_c;
  23.  
  24. #include "method.iv"
  25.  
  26.  
  27.  
  28. #line 23 "method.d"
  29. imeth char * Method_im_gName(object self)
  30. { Method_iv_t *iv = GetIVs(Method, self);
  31.     return iv->name; 
  32.  
  33. imeth int Method_im_gTrace(object self, int mode)
  34. { Method_iv_t *iv = GetIVs(Method, self);
  35.     int pmode = iv->trace; 
  36.     iv->trace = mode; 
  37.     return pmode; 
  38.  
  39. imeth ofun Method_im_gFunction(object self)
  40. { Method_iv_t *iv = GetIVs(Method, self);
  41.     return iv->meth; 
  42.  
  43. imeth ofun Method_im_gChangeFunction(object self, ofun fun)
  44. { Method_iv_t *iv = GetIVs(Method, self);
  45.     ofun org; 
  46.  
  47.     org = iv->meth; 
  48.     iv->meth = fun; 
  49.     return org; 
  50.  
  51. imeth objrtn Method_im_gCopy(object self)
  52.     return gShouldNotImplement(self, "gCopy/gDeepCopy"); 
  53.  
  54. objrtn Method_initialize(void) 
  55.     static int done = 0; 
  56.  
  57.  
  58.  
  59.  
  60.     if (done) 
  61.         return Method_c; 
  62.  
  63.     done = 1; 
  64.  
  65.  
  66.  
  67.     iMethodFor(Method, gName, Method_im_gName); 
  68.     iMethodFor(Method, gTrace, Method_im_gTrace); 
  69.     iMethodFor(Method, gFunction, Method_im_gFunction); 
  70.     iMethodFor(Method, gChangeFunction, Method_im_gChangeFunction); 
  71.     iMethodFor(Method, gCopy, Method_im_gCopy); 
  72.     iMethodFor(Method, gDeepCopy, Method_im_gCopy); 
  73.     return Method_c; 
  74.  
  75. #if 0 
  76.  
  77. cmeth objrtn Method_cm_gNewMethod(object self, char *n, object c, object gen, ofun methf, ofun methf2){} 
  78.  
  79. #endif 
  80.